package com.example.spring.config;

import com.example.spring.bean.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @功能
 * @作者 沈飞超
 * @日期 2020年09月03日 5:17
 */
@Configuration
@PropertySource(value = {"classpath:spring/my.properties"})
public class MyConfigOfPropertyValues {

    @Bean("person")
    public Person person() {
        return new Person();
    }

}
